package com.zxw.user.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zxw.user.domain.dto.RoleDTO;
import com.zxw.user.domain.vo.RolePageVO;
import org.apache.ibatis.annotations.Param;

import com.zxw.user.domain.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-01-21
 */
public interface RoleMapper extends BaseMapper<Role> {

    Role findByIdAndCompanyId(@Param("id") Long id, @Param("companyId") Long companyId);

    List<RoleDTO> getPageRoleList(@Param("roleDTOIPage") IPage<RoleDTO> roleDTOIPage, @Param("rolePageVO") RolePageVO rolePageVO);

}
